import request from '@/utils/request'

// 查询游泳馆列表
export function listSwimPlace(query) {
  return request({
    url: '/admin/course/swimPlace/list',
    method: 'get',
    params: query
  })
}

// 查询游泳馆详细
export function getSwimPlace(id) {
  return request({
    url: '/admin/course/swimPlace/' + id,
    method: 'get'
  })
}

// 新增游泳馆
export function addSwimPlace(data) {
  return request({
    url: '/admin/course/swimPlace',
    method: 'post',
    data: data
  })
}

// 修改游泳馆
export function updateSwimPlace(data) {
  return request({
    url: '/admin/course/swimPlace',
    method: 'put',
    data: data
  })
}

// 删除游泳馆
export function delSwimPlace(id) {
  return request({
    url: '/admin/course/swimPlace/' + id,
    method: 'delete'
  })
}
